package main

import "fmt"

func f(from string, n int) {
	for i := 0; i < n; i++ {
		fmt.Println(from, ":", i)
	}
}

func main() {
	f("direct", 3)
	go f("goroutine", 10)
	go func(msg string) {
		for j := 0; j < 5; j++ {
			fmt.Println(msg, j)
		}
	}("going")
	var input string
	fmt.Scanln(&input)
	fmt.Println("done")
}
